import React from 'react';
import { connect } from 'react-redux';
import { Layout } from 'antd';
const { Sider, Content } = Layout;
import AdminPageSlider from './AdminPageSlider' ; 

import './style.css';

class AdminPage extends React.Component {
    loggedIn() {
        return !!localStorage.token
    }

    render(){   
        return (
             <Layout className="main-layout">
                <Sider><AdminPageSlider /></Sider>
                <Layout>
                    <Content style={{padding:20}}>  {this.props.children} </Content>
                </Layout>
            </Layout>
            )
    }
}

export default connect()(AdminPage);